package com.xt.core.helper.property;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.File;
import java.util.Properties;


import com.xt.core.BaseConstants;

/**
 * @created 11.07.2008
 * @author $Tao Xiao
 * @version $Version $ $Date: 11.07.2008 10:28:07
 * 
 */
public class PropertyService extends Properties{
	
	private static final long serialVersionUID = -3014145211831303887L;

	public PropertyService() throws Exception{
		
		InputStream is = this.getClass().getResourceAsStream(BaseConstants.CONFIGPATH);
		load(is);
	}
	
	public PropertyService(String propertyFilePath) throws Exception{
		InputStream is = this.getClass().getResourceAsStream(propertyFilePath);
		load(is);
	}
}
